package com.djhu.springsimple.beans.factory;

import java.util.List;

/**
 * @author by zw on 2018/4/16.
 */
public interface BeanFactory {
    /** 根据名字获取Bean
     * @param name bean的名称
     * @return 实体类
     */
    public Object getBean(String name) throws Exception;

    /**
     * 判断类是否存在
     * @param name
     * @return
     */
    boolean containsBean(String name);


    String[] getbeanNamesfortype(Class classType);


    public List getBeansForType(Class type) throws Exception;
}
